<% if (Array.isArray(children)) { children.forEach((child) => { %>
  <% 
    const propsStr = (child.props || []).join(' ')
    const {children: c, componentName} = child
  %>
  <% if (c) { %>
    <%- `<${componentName} ${propsStr}>` %> 
      <%- Array.isArray(c) ? include('./children.ejs', {children: c}) : c %>  
    <%- `</${componentName}>` %>
  <% } else { %> 
    <%- `<${componentName} ${propsStr} />` %>
  <% } %>    
<% }) } else if (typeof children === 'string') { %>
  <%- children %>   
<% } %>  
